package cn.slahser.tools;

import java.io.FileInputStream;
import java.util.Properties;

/***
 * 属性文件操作类
 * 
 * @author Slahser
 * 
 */
public class ServerConfig {

	private static Properties p = new Properties();
	//静态加载之
	static {
		try {
			p.load(new FileInputStream("./server.ini"));
		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("服务器加载配置文件出错！");
		}
	}

	public static String getValue(String key) {
		return p.getProperty(key);
	}
}